<dirmove> : Move/Rename Directory (Folder)
Moves directory including all subdirectories.
Syntax:
<dirmove>("SourceDir", "DestDir", Reserved, Reserved)
SourceDir
Full path to the source directory (e.g., "c:\mydocuments").
DestDir
Full path to the destination directory (e.g., "c:\newdocs").
Reserved
Must be 0.
Reserved
Must be 0.
Example:
<#> This macro moves directory you select to other
directory you select.
<#>
<cmds>
<msg>(100,100,"Select folder you want to move.","Message",0)
<var_oper>(vDirSource,"",SELECT_FOLDER,"Select Source Folder","", "0")
<proc_call>(ExitOnCancel,)
<msgoff>
<msg>(100,100,"Select destination folder.","Message",0)
<var_oper>(vDirDest,"",SELECT_FOLDER,"Select Destination Folder","", "0")
<proc_call>(ExitOnCancel,)
<msgoff>
<msg>(100,100,"Directory move is in progress. Please wait....","Message",0)
<dirmove>("vDirSource","vDirDest",0,0)
<msgoff>
<#> --------------------------------------------------------------------
<proc_def_begin>(ExitOnCancel,)
<if_str>("_vCanceled==1")
<exitmacro>
<endif>
<proc_def_end>
<#> --------------------------------------------------------------------